<form method="post">
    <table style="width:900px;height:100px;border:1px solid;padding:10px;" >
        <tr>
            <td rowspan="3" ><img src="" width=100 height=100 /></td>
            <td colspan="2">商品名称:<input class="easyui-validatebox" type="text" name="name" data-options="required:true" style="width:280px;"></input></td>
            <td colspan="2">商品类别:<select class="easyui-combobox" name="category" style="width:210px;" ><?php foreach($ca as $item){echo "<option value=\"${item['id']}\">${item['desc']}</option>";}?></select></td>
            <td>状态:<select class="easyui-combobox" name="status" style="width:60px;" ><option value="0">销售</option><option value="1">下架</option><option value="2">本地</option></select></td>
        </tr>
        <tr>
            <td>商品原价:<input class="easyui-validatebox" type="text" name="prime_price" data-options="required:true" style="width:60px;"></input></td>
            <td>商品现价:<input class="easyui-validatebox" type="text" name="price" data-options="required:true" style="width:60px;"></input></td>
            <td>点击次数:<input class="easyui-validatebox" type="text" name="click_counts" data-options="required:true" style="width:60px;" ></input></td>
            <td>喜欢次数:<input class="easyui-validatebox" type="text" name="love_counts" data-options="required:true" style="width:60px;" ></input></td>
            <td>折扣:<input class="easyui-validatebox" type="text" name="discount" data-options="required:true" style="width:60px;" ></input></td>
        </tr>
        <tr>
            <td colspan="2">图片链接:<input class="easyui-validatebox" type="text" name="pic_link" data-options="required:true" style="width:280px;" ></input></td>
            <td colspan="3">产品链接:<input class="easyui-validatebox" type="text" name="product_link" data-options="required:true" style="width:330px;" ></input></td>
        </tr>
        <tr>
            <td colspan="6"><div>商品描述:</div><textarea name="desc" style="width:890px;height:50px;"></textarea></td>
        </tr>
        <tr>
    </table>
    <div style="padding:5px 0;text-align:right;padding-right:30px">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-save" plain="true" onclick="saveItem(<?php echo $index; ?>)">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="cancelItem(<?php echo $index; ?>)">取消</a>
    </div>
</form>
